package com.ruoyi.coin.job;

import com.ruoyi.coin.service.ICoinService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时器
 */
@Slf4j
@Component("coinTask")
public class CoinTask {

    @Autowired
    private ICoinService coinService;

    /**
     * 同步手机端首页热门
     */
    public void buyToken() {
        coinService.buyToken();
    }

    /**
     * 出售币种
     */
    public void sellToken() {
        coinService.sellToken();
    }

}
